<?php
/* @var $config Config */
require_once('bin/common.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title><?php  echo $config->getTitle(); ?></title>
        <link type="text/css" href="templetes/DarkTemp/styles/reset.css" rel="stylesheet" media="all" />
        <link type="text/css" href="templetes/DarkTemp/styles/text.css" rel="stylesheet" media="all" />
        <link type="text/css" href="templetes/DarkTemp/styles/960.css" rel="stylesheet" media="all" />
        <link type="text/css" href="templetes/DarkTemp/styles/style.css" rel="stylesheet" media="all" />
        <link type="text/css" href="templetes/DarkTemp/styles/print.css" rel="stylesheet" media="print" />
        <link rel="stylesheet" href="templetes/DarkTemp/styles/tableSort.css" />
        <script type="text/javascript" src="bin/jQuery/js/tableSort.js"></script>                       
        <script type="text/javascript" src="bin/jQuery/js/jquery-1.7.2.min.js"></script>
        <script type="text/javascript" src="bin/jQuery/js/jquery-ui-1.8.21.custom.min.js"></script>

        <noscript>
            JavaScript is turned off in your web browser. Turn it on to take full advantage of this site, then refresh the page.
        </noscript>
        
        <script type="text/javascript">
            if (screen.width <= 799) {
                document.location = "mobile.php";
            }
        </script>

    </head>
    <body>
        <div class="header_cotainer">
            <div class="container_12">
                <div class="grid_3">
                    <a href="/" ><h1 class="logo">Logo</h1></a>
                </div>
                <div class="grid_9">
                    <div class="menu_items">                
                        <a href="<?php echo $_SERVER['PHP_SELF']; ?>" class="button_link" title="Home">Home</a>
                        <a href="https://gmail.com" target="_blank" class="button_link" title="Email">Email</a>
                        <a href="?about=true" class="button_link" title="About">About</a>
                        <a href="https://support.awtechsupport.com" target="_blank" class="button_link" title="Help">Help</a>

                        <div class="search">
                            <form action="<?php echo $_SERVER['PHP_SELF']; ?>" name="Search_Form" method="POST" >
                                <input type="text" name="searchInput" value="<?php if (isset($_POST['searchInput'])) echo $_POST['searchInput'] ?>" />
                                <input type="submit" name="searchBtn" value="Search" />
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <div class="container_12"><?php displayDebug($config); ?></div>

        <!--Content Section -->
        <div class="content_container">
            <div class="container_12 content_highlight">
                <!--Left Menu Section -->
                <div class="grid_4">
                    <?php $config->menus->displayMenu(); ?>
                </div>

                <!--Center Content Section -->
                <div class="grid_8">
                    <!--Content Login Section -->
                    <div class="login">
                        <?php $config->userAuth->showModule(); ?>
                        <div class="clear"></div>
                    </div>

                    <div class="divider"></div>

                    <!--Content Section -->
                    <div class="login" >
                        <?php                        
                        displayContent($cmp_content, $config);                        
                        ?>
                    </div>
                    <div class="clear"></div>


                    <!--Content Post 2 Section (EXAMPLE ONLY) -->
                    <!-- <div class="post">
                        <div class="thumbnail"><a href="#"><img src="templetes/DarkTemp/images/image.jpg" alt="" /></a></div>
                        <h3><a href="#">Sample Header</a></h3>
                        <p>Sample content would be placed within this paragraph</p>
                        <div class="post_footer">
                            <div class="comments">left column</div>
                            <div class="more"><a href="#">right column</a></div>
                        </div>
                        <div class="clear"></div>
                    </div>
                   
                    <div class="divider"></div> -->



                    <!--End Content Post Section -->
                </div>
                <div class="clear"></div>
            </div>
        </div>
        <!--<meta http-equiv="refresh" content="1800;url='<?php //echo $_SERVER['REQUEST_URI'];  ?>'" />--!>
        <?php   
        displayFooter($config);        
        ?>
    </body>
</html>